home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: mxsld2.pd.infn.it!LORETI
- From: loreti@mxsld2.pd.infn.it (Maurizio Loreti)
- Subject: Re: What's your compiler's answer?
- X-Nntp-Posting-Host: mxsld2.pd.infn.it
- Message-ID: <Dn64sE.JBr@news.cern.ch>
- Sender: news@news.cern.ch (USENET News System)
- Reply-To: loreti@mxsld2.pd.infn.it
- Organization: I.N.F.N. Padova - CDF/CMS VAXcluster
- References: <1996Feb7.140945.28351@cs.rit.edu> <4fq0cq$h9s@hpbblb.bbn.hp.com> <danpop.824432113@rscernix>,<4g2a1d$r33@solutions.solon.com>
- Date: Thu, 22 Feb 1996 08:26:36 GMT
-
- In article <danpop.824432113@rscernix>, Dan Pop <danpop@mail.cern.ch> wrote:
- >j = i++, i++, i++; /* equivalent to: j = i + 2; i += 3; */
-
- cmssun1-15> cat foo.c
- #include <stdio.h>
-
- main()
- {
- int i=3, j;
- j=i++,i++,i++;
- printf("i,j=%d %d\n",i,j);
- return 0;
- }
- cmssun1-16> gcc -ansi -pedantic -Wall foo.c
- foo.c:4: warning: return-type defaults to `int'
- cmssun1-17> ./a.out
- i,j=6 3
-
- Dan????
- --
- Maurizio Loreti http://mvxpd5.pd.infn.it/wwwcdf/mlo.html
- Un. of Padova, Dept. of Physics - Padova, Italy loreti@padova.infn.it
-